<template>
  <view>
    <uni-nav-bar1 title="云上连山" isHome fixed leftIcon="arrowleft" statusBar :border="false" color="#fff"></uni-nav-bar1>
    <view class="list">
      <view class="item" v-for="(item, index) in list" :key="index" @click="$util.goUrl(item.link)">
        <image class="img" :src="item.img" mode="aspectFill" />
        <view class="con">
          <view class="tag">{{ item.tag }}</view>
          <view class="title">{{ item.tit }}</view>
          <!-- <view class="flex-start">
            <view class="key">{{item.key}}</view>
            <view class="num">{{item.number}}</view>
          </view>-->
          <view class="link">点击进入</view>
        </view>
      </view>
    </view>
  </view>
</template>
<script>
import videoItem5 from "@/components/videoItem5.vue";
import videoItem from "@/components/videoItem.vue";
export default {
  components: {
    videoItem5,
    videoItem,
  },
  data() {
    return {
      list: [
        {
          img: "../static/i11.png",
          tag: "科技云",
          tit: "农业知识讲堂",
          key: "收藏量",
          number: "1500",
          link: "/pages/knowledge",
        },
        {
          img: "../static/i21.png",
          tag: "企业云",
          tit: "企业大全",
          key: "企业量",
          number: "15243",
          link: "/pages/companyList",
        },
      ],
    };
  },
  onLoad() {
    this.getData();
  },
  methods: {
    getData() {},
    tips() {
      this.$toast("功能开发中");
    },
  },
};
</script>

<style lang="scss" scoped>
.item {
  position: relative;
  width: 654rpx;
  margin: 40rpx auto 40rpx;
  padding-left: 48rpx;
  color: #7a7f83;
  .img {
    position: absolute;
    left: 0;
    top: 32rpx;
    width: 252rpx;
    height: 222rpx;
    background: #eee;
    border-radius: 18rpx;
    border: 1rpx solid #eee;
  }
  .con {
    width: 606rpx;
    height: 290rpx;
    padding-top: 30rpx;
    padding-left: 246rpx;
    background: #ffffff;
    box-shadow: 0rpx 12rpx 30rpx 0rpx rgba(126, 132, 156, 0.1);
    border-radius: 32rpx;
  }
  .tag {
    font-size: 24rpx;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #14ac69;
    line-height: 34rpx;
    letter-spacing: 2rpx;
  }
  .title {
    margin-top: 16rpx;
    margin-bottom: 48rpx;
    font-size: 48rpx;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #383f45;
    line-height: 66rpx;
  }
  .num {
    margin-left: 16rpx;
    font-size: 28rpx;
    font-family: AvenirNext-DemiBold, AvenirNext;
    font-weight: 600;
    color: #ff9266;
    line-height: 38rpx;
    letter-spacing: 2rpx;
  }
  .link {
    margin-top: 48rpx;
    font-size: 32rpx;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #14ac69;
    line-height: 44rpx;
    letter-spacing: 2rpx;
  }
}
</style>
